package com.kunchi.platform.service;

import com.kunchi.platform.entity.project.Project;
import com.kunchi.platform.entity.project.ProjectConf;
import com.kunchi.platform.entity.project.ProjectModule;

import java.util.List;

/**
 * Created by denniszhou on 2017/7/23.
 */
public interface ProjectService {
    List<Project> findByCompanyId(Long companyId);

    Project findById(Long id);

    ProjectConf createConfiguration(ProjectConf projectConf);

    ProjectConf saveConfiguration(Long id, String content, String picture);

    void deleteConfiguration(Long id);

    List<ProjectConf> findConfigurationsByProjectId(Long projectId);

    ProjectConf findConfigurationByIdAndProjectId(Long id, Long projectId);

    Project createProject(Project project);

    ProjectModule findProjectModuleByProjectId(Long projectId);

    ProjectModule updateProjectModule(ProjectModule projectModule);
}
